﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Fileupload.aspx.cs" Inherits="UDS.SubModule.UnitiveDocument.Archives.Fileupload" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:FileUpload ID="FileUpload1" runat="server" />
        <asp:Button ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="确定上传" /><br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="id" HeaderText="ID" />
                <asp:BoundField DataField="guid" HeaderText="guid" />
                <asp:BoundField DataField="filename" HeaderText="文件名" />
                <asp:TemplateField HeaderText="下载">
                    <ItemTemplate>
                       <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# "filedownload.ashx?guid="+Eval("guid") %>'  
                                runat="server">click</asp:HyperLink>  
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
